import { DialogForm } from 'custom/index'
import { updateScriptManagePage } from './api'


const editDialog = new DialogForm('DialogForm')
editDialog
  .title('编辑')
  .getApi(async (_, row) => ({ shopId: row.shopId, stopReason: row.stopReason }))
  .postApi(updateScriptManagePage)
  .useGroup('')
    .useItem('stopReason').label('说明').setProps({ type: 'textarea', autosize: { minRows: 4 } }).required().end()

export { editDialog }
